#include "base/SimpleStatistics.h"
#include "util/Logger.h"

NEW_DELETE_OPERATORS_CPP(SimpleStatistics,1);

SimpleStatistics::SimpleStatistics(char* collectionName):
    StatisticsCollection(collectionName) {
}

SimpleStatistics::~SimpleStatistics() {
}

void SimpleStatistics::rollback() {
    Log->e("rollback is not a valid operation for SimpleStatistics\n");
}

void SimpleStatistics::commit() {
    Log->e("commit is not a valid operation for SimpleStatistics\n");
}

void SimpleStatistics::tallyVote() {
    //TODO add logic for tallyVote in the simple case
}

void SimpleStatistics::validateContraints() {
    //TODO add logic to handle constraints in the simple case
}

